package edu.yctc.origin.vo;

/**
 * 图书VO
 * 
 * @author 赵宜珺
 *
 */
public class BookVO {

    /** 图书id */
    private long id;
    /** 书名 */
    private String name;
    /** 书编 */
    private String number;
    /** 出版社 */
    private String press;
    /** 作者 */
    private String author;
    /** 库存 */
    private int stock;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("BookVO [id=");
        builder.append(id);
        builder.append(", name=");
        builder.append(name);
        builder.append(", number=");
        builder.append(number);
        builder.append(", press=");
        builder.append(press);
        builder.append(", author=");
        builder.append(author);
        builder.append(", stock=");
        builder.append(stock);
        builder.append("]");
        return builder.toString();
    }

}
